﻿#ifndef SCOCKETHELPER_H
#define SCOCKETHELPER_H

#include <WinSock2.h>
#pragma comment(lib, "ws2_32.lib")
//初始化套接字库
class SocktetUtil{
public:
    static int initSocket();
    static SOCKET openListen(int port, int backlog);
    static SOCKET openClientSocket(const char* ip,int port);
};
#endif // SCOCKETHELPER_H
